package com.dnjn.mes.biz.domain;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.mes.common.core.domain.BaseEntity;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 打卡记录
 * </p>
 *
 * @author Amber
 * @since 2023-08-29
 */
@Getter
@Setter
@TableName("mes_workforce_shift_clocking")
@Accessors(chain = true)
public class MesWorkforceShiftClocking extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * PK
     */
    @TableId(value = "clocking_id", type = IdType.ASSIGN_ID)
    private Long clockingId;

    private Long shiftId;

    /**
     * sys_user.user_id
     */
    private Long userId;

    private String userName;

    /**
     * 已开始上班打卡
     */
    private String hasClockin;

    /**
     * punch-in 上班打卡时间
     */
    private LocalDateTime clockinDatetime;

    /**
     * 已开始下班打卡
     */
    private String hasClockout;

    /**
     * punch-out 下班打卡时间
     */
    private LocalDateTime clockoutDatetime;

    private Long equipmentId;

    /**
     * 是否删除|0-否 1-是|valid
     */
    private String deleted;

    /**
     * 密码
     */
    @TableField(exist = false)
    private String password;

    @TableField(exist = false)
    private String workforceShiftName;

    @TableField(exist = false)
    private LocalDate currentDate;
}
